package cn.ulc.store.dao.site;
import cn.ulc.common.constant.enums.AvailableStatus;
import cn.ulc.store.dao.BaseDao;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.annotatoin.SqlResource;
import cn.ulc.store.entity.site.Site;

import java.util.List;


/*
* Site
* gen by Jin mapper 2019-07-04
*/
@SqlResource("site.site")
public interface SiteDao extends BaseDao<Site> {

    PageQuery<Site> findListPage(PageQuery pageQuery);

    Site findById(Long id);


    Site findByCity(Long companyId,String  city);

    Site findDefault(Long companyId);

    List<Site> findListByCompanyId(Long companyId, AvailableStatus status);

}
